package com.qf.mapper;/*
 *徐韬
 *2021/11/3
 *17:29
 */

import com.qf.pojo.TChannel;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface channelMapper {
    @Select("select * from t_channel")
    List<TChannel> selectAll();
    @Insert("insert into t_channel values(0,#{channelName},#{channelType},#{spNumber},#{protocalType})")
    int addchannel(TChannel tChannel);
    int update(TChannel tChannel);
    int deleteByids(@Param("ids")List<Integer> ids);
}
